<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>内边距</title>
</head>
<style>
    #p1{
        width: 400px;
        height: 400px;
        border: 10px solid yellow;
        padding-left: 50px;/*padding用于嵌套的两个盒子移动，且移动的距离计算是从大的内边到小的外边*/
    }
    #p2{
        width: 200px;
        height: 200px;
        border: 10px solid blue;
    }
</style>
<body>
<div id="p1">
    <div id="p2">

    </div>
</div>
</body>
</html>